package cn.justforchris.system.mapper;

import cn.justforchris.system.domain.Role;
import cn.justforchris.system.query.RoleQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    void insertRole(Role Role);

    void updateRole(Role Role);

    void deleteRole(Long id);

    void patchDelete(Long[] ids);

    Role getRoleById(Long id);

    List<Role> getAll();

    List<Role> queryPage(RoleQuery queryPage);

    void addRolePermission(Role role);

    void addRoleMenu(Role role);

    void deleteRolePermission(Long id);

    void deleteRoleMenu(Long id);

}
